// Modal.js

Application.Views.Modal = Application.Vista.extend({
    beforeRender: function () {
		if (!Application.ultimaVista) {
			Application.Router.home('/');
		}
		return this;
	},
	onClose: function () {
		Application.Vista.prototype.beforeRender.apply(this, arguments);
	},
	render: function () {
		$('body').modal({
			template: this.template
		});

		return this;
	}
});
